package com.shengyin.ec.model.entity;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name= "delievery")
public class Delivery extends BaseEntity {
	
	private String delieveryName;
	private String orderDescription;
	private float delieveryFee;
	private int delieveryDays;
	
	@OneToMany(mappedBy="delivery")
	private List<Orders> orders;
	
	public String getDelieveryName() {
		return delieveryName;
	}
	public void setDelieveryName(String delieveryName) {
		this.delieveryName = delieveryName;
	}
	public String getOrderDescription() {
		return orderDescription;
	}
	public void setOrderDescription(String orderDescription) {
		this.orderDescription = orderDescription;
	}
	public float getDelieveryFee() {
		return delieveryFee;
	}
	public void setDelieveryFee(float delieveryFee) {
		this.delieveryFee = delieveryFee;
	}
	public int getDelieveryDays() {
		return delieveryDays;
	}
	public void setDelieveryDays(int delieveryDays) {
		this.delieveryDays = delieveryDays;
	}
	public List<Orders> getOrders() {
		return orders;
	}
	public void setOrders(List<Orders> orders) {
		this.orders = orders;
	}
	
	
}
